/**
 * @param {string[]} event1
 * @param {string[]} event2
 * @return {boolean}
 */
var haveConflict = function (event1, event2) {
  const date1 = event1.map(item => {
    let [hour, min] = item.split(':')
    return Number.parseInt(hour) * 60 + Number.parseInt(min)

  })
  const date2 = event2.map(item => {
    let [hour, min] = item.split(':')
    return Number.parseInt(hour) * 60 + Number.parseInt(min)

  })
  if (date1[0] >= date2[0] && date1[0] <= date2[1] || date1[0] < date2[0] && date1[1] >= date2[0]) {
    return true
  }

  return false
};